package com.itheima.zhlx.service.impl;

import com.itheima.zhlx.dao.TypeDao;
import com.itheima.zhlx.dao.impl.TypeDaoImpl;
import com.itheima.zhlx.pojo.Type;
import com.itheima.zhlx.service.TypeServlet;

import java.util.List;

public class TypeServletImpl implements TypeServlet {
    private TypeDao typeDao =new TypeDaoImpl();
    @Override
    public List<Type> typeFindAll() {
        List<Type> types = typeDao.typeFinaAll();
        return types;
    }
}
